/*
*
* LogMapper.java
* @date 2019-03-01
*/
package com.lyz.myself.mapper;

import com.lyz.myself.pojo.Po.Log;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 日志
 */
public interface LogMapper {
    /**
     *删除日志
     * @mbg.generated 2019-03-01
     */
    int deleteByPrimaryKey(@Param("list") List<Integer> list);

    /**
     *
     * @mbg.generated 2019-03-01
     */
    int insert(Log record);

    /**
     *  添加日志-
     * @mbg.generated 2019-03-01
     */
    int insertSelective(Log record);

    /**
     *
     * @mbg.generated 2019-03-01
     */
    Log selectByPrimaryKey(Integer log_id);

    /**
     * 根据线索id查询沟通日志
     * @param leads_id
     * @return
     */
    List<Map<String, String>> selectLog(@Param("leads_id")Integer leads_id,@Param("company_id")Integer company_id);

    /**
     *修改日志
     * @mbg.generated 2019-03-01
     */
    int updateByPrimaryKeySelective(Log record);

    /**
     *
     * @mbg.generated 2019-03-01
     */
    int updateByPrimaryKeyWithBLOBs(Log record);

    /**
     *
     * @mbg.generated 2019-03-01
     */
    int updateByPrimaryKey(Log record);
}